<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	<?php 
		echo $this->headMeta();
		echo $this->headTitle();
		echo $this->headLink()->prependStylesheet($this->baseUrl() . '/css/main.css');
		echo $this->headScript()->prependFile($this->baseUrl() . '/js/main.js');
	?>
	</head>
	
	<body>
	<div id="wraper">
		<!--  <div id="header">
			<h1>bro</h1>
		</div>-->
		<div id="menu">
			<?php echo $this->action('menu', 'layout'); ?>
		</div>
		<div id="content">
			<div id="leftblock">
				<h1><?php echo $this->title; ?></h1>
				<?php echo $this->layout()->content;?>
			</div>
			<div id="rightblock">
				<h2>Right block header</h2>
				<p>Lorem Ipsum as their default model text,
				 and a search for 'lorem ipsum' will uncover
				  many web sites still in their infancy.
				   Various versions have evolved over the years
				   , sometimes by accident, sometimes on purpose
				    (injected humour and the like).</p>
				    <?php 
				    	$loginfo = $this->loggedInUser();
				    	if(isset($loginfo['profile'])){
				    		foreach($loginfo['profile'] as $bet)
				    			echo $bet;
				    	}
				    	echo $loginfo['loginout'];
				    ?>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<div id="footer">
		&copy;Foot&nbsp;
		<a href="
		<?php echo $this->url(array('controller' => 'test', 'action' => 'index'),  'default' ,true); ?>
		">Test</a>
	</div>
	</body>
</html>
